<?php


namespace app\im\handle;


use app\im\handle\lib\Handle;
use iflow\swoole\implement\Server\WebSocket\Service;

class swooleHandle {

    use Handle;

    protected Service $websocket;
    protected array $data = [];

    public function handle(Service $websocket, array $data) {
        $this->websocket = $websocket;
        $this->data = $data;
        $this->checkRule($this->websocket, $data);
    }

}